package com.kx.smartdevice.mapper;

import com.kx.smartdevice.pojo.Humiture;
import org.apache.ibatis.annotations.Insert;

import java.util.List;
import java.util.Map;

/**
 * @ClassName HumitureMapper
 * @Author Sun
 * @Date 2021/6/2 19:19
 */
public interface HumitureMapper {

    List<Humiture> getHumituresByParamMap(Map map);

    @Insert("INSERT INTO humiture (deviceId,humidity,temperature) VALUES(#{deviceId},#{humidity},#{temperature})")
    void addHumiture(Humiture humiture);

}
